puts 'Puzzle 1'

  arr = [3,5,1,2,7,9,8,13,25,32]

  sum = 0

  print arr

  arr.each { |x| sum += x}

  puts

  puts sum

  print arr.reject { |x| x < 10 }

  puts

puts 'Puzzle 2'

  arr = ['John', 'KB', 'Oliver', 'Cory', 'Matthew', 'Christopher']

  print arr

  puts

  arr.shuffle

  arr.each { |x| puts x }

  puts 'Printing names longer than 5 characters'

  arr.each { |x| puts x if x.size > 5 }

puts 'Puzzle 3'

  arr = ('a'..'z').to_a

  print arr

  puts

  arr.shuffle!

  puts "Last letter is: #{arr.last}"

  puts "First letter is: #{arr.first} "
  print 'a vowel!' if arr.first.match(/[aeiou]/)

  puts

puts 'Puzzle 4'

  arr = Array.new(10) { rand(50..100)}

  print arr

  puts

puts 'Puzzle 5'

  print arr.sort

  puts

  puts "Array Min: #{arr.min}"
  puts "Array Max: #{arr.max}"

puts 'Puzzle 6'

  puts (0...5).map { (65 + rand(26)).chr }.join

puts 'Puzzle 7'

  print Array.new(10) { (0...5).map { (65 + rand(26)).chr }.join }

  puts


